#ifndef _ALAPFORM_H_
#define _ALAPFORM_H_

#include <FBase.h>
#include <FUi.h>
#include <FLocations.h>
#include <FMedia.h>

class AlapForm :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener,
	public Osp::Locations::ILocationListener
{

// Construction
public:
	AlapForm(void);
	virtual ~AlapForm(void);
	bool Initialize(void);

// Implementation
protected:
	static const int ID_ZOOM_IN = 101;
	static const int ID_ZOOM_OUT = 102;

	int zoomLevel;
	Osp::Locations::Controls::Map * pMap;
	Osp::Locations::Controls::MapOverlayMarker *marker;
	Osp::Locations::LocationProvider *locProvider;
	double longitude, latitude;

public:
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);

	void OnLocationUpdated(Osp::Locations::Location& location);
	void OnProviderStateChanged(Osp::Locations::LocProviderState newState);
};

#endif	//_ALAPFORM_H_
